import * as request from '../../utils/request';
import config from '../../config/config';

export function getAuthorizeList(params) {
  return request.get(`${config.limit_api.getAuthorizeList}`, params);
}

export function getAuthorizePage(params) {
  return request.get(`${config.limit_api.getAuthorizePage}`, params);
}

export function addAuthorize(params) {
  return request.post(`${config.limit_api.addAuthorize}`, params);
}

export function deleteAuthorize(params) {
  return request.post(`${config.limit_api.deleteAuthorize}`, params);
}

export function getAppRelateMenuTree(params) {
  return request.get(`${config.limit_api.getAppRelateMenuTree}`, params);
}
